From: Andrew Cooper Date: Thu, 25 Jan 2018 18:38:17 +0000 (+0000) Subject: xen/build: Untangle CONFIG_DEBUG and CONFIG_FRAME_POINTER X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~686 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=376a1c3476e145a0494a49882557952529348313;p=xen.git xen/build: Untangle CONFIG_DEBUG and CONFIG_FRAME_POINTER Both options are independently choseable in KConfig, but currently a DEBUG build without FRAME_POINTER is left to the compilers default choice, not the users choice. Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich --- diff --git a/xen/Rules.mk b/xen/Rules.mk index 3cf40754a6..541ed13aa1 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -43,7 +43,13 @@ ALL_OBJS-$(CONFIG_CRYPTO) += $(BASEDIR)/crypto/built_in.o ifeq ($(CONFIG_DEBUG),y) CFLAGS += -O1 else -CFLAGS += -O2 -fomit-frame-pointer +CFLAGS += -O2 +endif + +ifeq ($(CONFIG_FRAME_POINTER),y) +CFLAGS += -fno-omit-frame-pointer +else +CFLAGS += -fomit-frame-pointer endif CFLAGS += -nostdinc -fno-builtin -fno-common @@ -58,8 +64,6 @@ ifneq ($(clang),y) CFLAGS += -Wa,--strip-local-absolute endif -CFLAGS-$(CONFIG_FRAME_POINTER) += -fno-omit-frame-pointer - ifneq ($(max_phys_irqs),) CFLAGS-y += -DMAX_PHYS_IRQS=$(max_phys_irqs) endif